#include <stdio.h>
#include <stdlib.h>
int main(int argc, char* argv[])
{
  int i;
  int result = 0;
  int args[40];
  for (i = 1; i < argc; i++)
  {
    printf("%s%s", argv[i], (i < argc - 1) ? "" : "" );
	args[i-1] = atoi(argv[i]);
	result = result + args[i-1];
	printf("\n");
  }
  printf("%d", result);
  return 0;
}